Probability based whitelist

ABSTRACT

A system and method are disclosed for maintaining a whitelist, including: obtaining message data based on an email message sent by a user; extracting recipient information from message data; updating the whitelist using the recipient information.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation and claims the priority benefit of U.S. patent application Ser. No. 10/449,875 filed May 29, 2003, and entitled “Probability Based Whitelist.” The disclosure of which is incorporated by reference.

FIELD OF THE INVENTION

The present invention relates generally to electronic messages. More specifically, a method and a system for avoiding spam messages are disclosed.

BACKGROUND OF THE INVENTION

Electronic messages have become an indispensable part of modern communication. Electronic messages such as email or instant messages are popular because they are fast, easy, and have essentially no incremental cost. Unfortunately, these advantages of electronic messages are also exploited by marketers who regularly send out unsolicited junk messages. The junk messages are referred to as “spam,” and spam senders are referred to as “spammers.” Spam messages are a nuisance for users. They clog people's email box, waste system resources, often promote distasteful subjects, and sometimes sponsor outright scams.

A number of message filtering systems exist for mitigating the problems caused by spam. These systems often employ a whitelist technique, where a list of allowable sender addresses is maintained. These sender addresses are usually added by the user. Any messages coming from a sender in the whitelist is presumed to be a good, non-spam message. The whitelist test works as follows in some systems: once a message is received, the system looks up the sender address of the message in the whitelist. If the sender address is found in the whitelist, the message is classified as non-spam and delivered to the intended recipient. If, however, the sender address is not found in the whitelist, the message cannot be classified and further testing is needed to determine whether it is spam or non-spam.

Whitelisting is a widely accepted technique since it is useful in identifying non-spam messages, and performing a whitelist test incurs relatively low overhead on the system. The effectiveness of the whitelist depends on the entries in the whitelist; a well-maintained whitelist with many entries tends to be more useful than a whitelist that has very few entries. Since most of the systems require the user to manually add entries to his whitelist, addresses that should be added to the whitelist may be unintentionally left out, thereby making the whitelist less effective. Furthermore, many users find the manual process of adding whitelist entries somewhat tedious, and thus desire a more automated process. Also, it may be problematic or inconvenient to upload whitelists from clients to servers on systems where email filtering is implemented on a server. It would be useful to have a way to maintain a whitelist that requires less manual intervention, and improves the effectiveness of the whitelist.

SUMMARY OF THE INVENTION

Exemplary embodiments provide a mechanism for updating hierarchical whitelists. In one embodiment, a message application software accesses message data associated with an e-mail message sent by a sender to a recipient in a network. The message application software extracts sender information and recipient information from the message data and sends the extracted information to a server that updates a plurality of whitelists on the server with the extracted information. The plurality of whitelists are associated with the sender and a group of users that share whitelists entries. The recipient is identified as being allowed to send e-mail messages to the sender and the group of users.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will be readily understood by the following detailed description in conjunction with the accompanying drawings, wherein like reference numerals designate like structural elements, and in which:

FIG. 1A is a block diagram illustrating a system embodiment that maintains an automated whitelist.

FIG. 1B is a block diagram illustrating another system embodiment that maintains an automated whitelist.

FIG. 1C is a block diagram illustrating another system embodiment.

FIG. 2 is a flowchart illustrating a server process for processing an inbound message.

FIG. 3A is a flowchart illustrating a process for whitelisting a recipient, according to one embodiment.

FIG. 3B is a flowchart illustrating a process for automatically updating a whitelist using the message tap according another embodiment.

FIG. 4 is a chart illustrating a probabilistic whitelist for a trusted user, according to one embodiment.

FIG. 5 is a flowchart illustrating the automatic updating of hierarchical whitelists according to an embodiment.

FIG. 6 is a flowchart illustrating a message classification process using hierarchical whitelists and blacklists according to one embodiment.

DETAILED DESCRIPTION

It should be appreciated that the present invention can be implemented in numerous ways, including as a process, an apparatus, a system, or a computer readable medium such as a computer readable storage medium or a computer network wherein program instructions are sent over optical or electronic communication links. It should be noted that the order of the steps of disclosed processes may be altered within the scope of the invention.

A detailed description of one or more preferred embodiments of the invention is provided below along with accompanying figures that illustrate by way of example the principles of the invention. While the invention is described in connection with such embodiments, it should be understood that the invention is not limited to any embodiment. On the contrary, the scope of the invention is limited only by the appended claims and the invention encompasses numerous alternatives, modifications and equivalents. For the purpose of example, numerous specific details are set forth in the following description in order to provide a thorough understanding of the present invention. The present invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the present invention is not unnecessarily obscured.

An improved technique for maintaining a whitelist is disclosed. In this specification, a whitelist is used to refer to a collection of data that can be used to identify email messages sent by allowable senders. In some embodiments, a system obtains message data based on an email message sent by a user and extracts recipient information from the message data. Message data refers to information pertaining to the email message. It may come from a variety of sources, and can be obtained using techniques including intercepting incoming email messages, monitoring email activities, reading log information, reading stored email messages, or any other appropriate technique. The whitelist is then updated using the recipient information. In some embodiments, a message tap is used to obtain the message data. Hierarchical and/or probabilistic whitelists are employed in some embodiments.

As used herein, a recipient may refer to any individual, device, organization or other entity that is associated with the receiving of an email. Recipient information refers to information pertaining to the recipient, including a person's name, an email address, a domain name, an IP address, an email server identifier or any other appropriate information. Similarly, the sender may refer to any individual, device, organization or other entity that is associated with the sending of an email, and the sender information refers to any information pertaining to the sender.

FIG. 1A is a block diagram illustrating a system embodiment that maintains an automated whitelist. The system facilitates the email communication between users on the corporate/organization network (Intranet) and other users on the Internet. The Intranet users are also referred to as trusted users, since they are the ones the system aims to protect from spam messages. The system also facilitates the email communication among trusted users. Trusted users use mail clients such as 100, 102, 104 and 106 to send outbound email messages. These messages are sent to a message transport agent 108.

The message transport agent forwards the outbound email to either the Internet or the Intranet, depending on the location of the recipient. The message transport agent also logs the activity to a log file. A message tap 114 residing on the message transport agent is used to obtain message data based on email messages sent by the user. The message data is obtained by reading the log file that includes sender and recipient information of email messages from the trusted users. It should be noted that there are alternative ways to obtain the message data. For example, the message transport agent may send logs regarding email messages to the network and the message tap may be configured to receive these logs. In some embodiments, the message data is the email message itself, which is intercepted or accessed by the message tap.

Sender and recipient information is then extracted from the message data. Generally, since most people only send messages to recipients they know and trust, if a sender sends a message to a recipient, the recipient is unlikely to be a spammer, and the sender should be willing to accept further messages from that recipient. Thus, message tap 114 sends the extracted sender and recipient information to anti-spam gateway 112, which updates a whitelist 116. The anti-spam gateway is a server that processes incoming messages sent from the Internet, intended for the protected users on the Intranet. It performs functions such as message classification and filtering to keep spam messages from being delivered to the protected users. In some embodiments, the anti-spam gateway is a part of the message transport agent. In some embodiments, each protected user has an individual whitelist that is customizable, and the sender information is used to identify whose whitelist should be updated. By monitoring messages sent by the protected user, the whitelist is generated automatically and independently by the server. There is no need for whitelist management to be implemented on the client machine. This simplifies original deployment and updating of the whitelist software. The anti-spam gateway uses the whitelist to filter any incoming message intended for a protected user on the network. A non-spam message is delivered directly, or forwarded to the message transport agent and then delivered.

In some embodiments, the protected users are all trusted users and communication among trusted users is always allowed. For example, a message sent by a trusted user on client 100, intended for another trusted user on client 102 is always considered non-spam and delivered. There are various ways to achieve this. For example, the message transport agent may identify that the sender and the recipient are both trusted users, and send the message to the recipient directly.

It should be noted that the message tap may be any appropriate software and/or hardware component, and may be located on the message transport agent or any other appropriate locations where message data can be detected. FIG. 1B is a block diagram illustrating another system embodiment that maintains an automated whitelist. In this embodiment, message tap 114 resides on a firewall 120. The firewall monitors activities on the network and logs these activities, including outbound email activities from a trusted user to an Internet user. A message tap examines the firewall log and extracts the recipient information based on log messages pertaining to the outbound email messages. The recipient information is added to a whitelist 116 that resides on the anti-spam gateway 112. As noted above, an individual whitelist may be maintained for each sender by also noting sender address for messages. In some embodiments, a single whitelist is maintained for all protected users.

FIG. 1C is a block diagram illustrating another system embodiment. In this embodiment, multiple message taps 122 and 124 reside on mail clients 100 and 102, respectively. When a trusted user sends an outbound message via one of these mail clients, the message tap that resides on the client intercepts this message and extracts sender and recipient information from the message that is being sent. The recipient information is added to the whitelist or set of whitelists that reside on anti-spam gateway 112.

An inbound message sent by an Internet user, intended for a trusted user is received by a server. As shown in FIGS. 1A-1C, the server is an anti-spam gateway that uses the whitelist to filter the message. FIG. 2 is a flowchart illustrating a server process for processing an inbound message. Once the server receives a message (200), it parses the message to obtain sender information and recipient information (202). The server then looks up the sender information in the recipient's whitelist (204), and implements the recipient's whitelist policy accordingly (206). In some embodiments, the sender information of the message is compared to the addresses in the whitelist. If the sender address is found in the whitelist, then the sender is an allowable sender and the message is promptly delivered. If the sender address is not found in the whitelist, the message is somewhat suspect and should be further processed by the anti-spam gateway to determine whether the message is spam or non-spam. In some embodiments, the server may maintain a collective whitelist for groups of users in addition to individual whitelists. Users may be allowed to join groups and share whitelist entries or users may be assigned to a group (for example, their division or working group within a company) with which the user will share whitelist entries. The combination of individual whitelists and the shared whitelist made possible by the server analysis of outgoing email messages gives the system considerable flexibility.

Since the message tap implementation may vary for different embodiments of the system, the process for whitelisting a recipient may also vary. FIG. 3A is a flowchart illustrating a process for whitelisting a recipient, according to one embodiment. The message tap intercepts or accesses the message to obtain message data (300). The system configuration may be similar to the embodiment shown in FIG. 1C, where the message tap is configured to intercept outbound email messages. In some embodiments, the message tap is configured to access an email message by reading a database of sent messages. Sender information and recipient information is then extracted from the message data (302). The whitelist is updated with the recipient information (304). FIG. 3B is a flowchart illustrating a process for automatically updating a whitelist using the message tap according another embodiment. A message tap obtains message data from the message transport agent (350). In some embodiments, this is done by reading a log file generated by the message transport agent. In some embodiments, the information is obtained by receiving log events sent by the message transport agent. The sender and recipient information is extracted (352) and then updates the whitelist with the recipient information (354). It should be noted that the sender and recipient information extraction may be performed by any appropriate components of the system, including the message tap and the anti-spam process that maintains the whitelist.

In some embodiments, the server includes whitelists that are hierarchical. One level of the hierarchy is an individual whitelist that is customizable for every trusted user. On another level, groups or divisions have their own whitelists that are formed using information collected from individual users within the groups or divisions. This type of whitelist is also referred to as a collaborative whitelist. On another level, a corporate whitelist is used to maintain whitelisted addresses that are applicable to all the users and groups within the corporation or organization. A global whitelist is sometimes employed by the list provider to allow certain addresses such as the administrators of the service provider to be whitelisted. It should be noted that different hierarchical levels and structures may also be used.

In some embodiments, the whitelists entries are probabilistic. In other words, the entries in the whitelist are each given a probability of being allowable. FIG. 4 is a chart illustrating a probabilistic whitelist for a trusted user, according to one embodiment. A whitelist entry includes an email address obtained from the message data, whitelist counters for all the levels in the hierarchy, blacklist counters for all the levels in the hierarchy, and a probability of the address being an allowable address. The whitelist counters and the blacklist counters are used to track how many times messages from the given email address have been indicated as non-spam or spam, respectively, by various members in the hierarchy. Different individuals may disagree on whether a message is spam; for example, some users in a group may blacklist an address while others whitelist the same address. Thus, the blacklist and whitelist counter values are taken into consideration for arriving at the probability of being allowable for a given address. Rules and formulas for deriving the probability may differ for different embodiments. For example, the various blacklist and whitelist counters may have different weights used in computing the probability; there may be rules governing the relationships between the hierarchies, and the blacklist or whitelist in one hierarchy may override some other hierarchy.

In the example, the first address, jane@aol.com, has been whitelisted once by the individual user. It has not been blacklisted by anybody else. The resulting probability of this address being an allowable address is set to be 100 percent. The second address, admin@mailfrontier.com has not been flagged as either a blacklisted address or a whitelisted address by the individual, the group, or the corporation. However, it has been determined to be allowable and whitelisted once on a global level. Therefore, the probability of the address being allowable is also set to be 100 percent. The third address, joe@msn.com, has been determined to be the address of a spammer by some members of the group and added to the group blacklist twice, but it has also been added to the group whitelist three times by other members. Consequently, the probability of it being spam is calculated to be 60 percent.

It should be noted that there are a variety of methods that are applicable for computing the probability of the message being spam, including Bayesian Priors and thresholds. In some embodiments, the blacklist and whitelist counters for an address may be set to non-zero values initially. For example, the initial counter values for jane@aol.com may be set to 1 for both the blacklist and the whitelist. When its global whitelist counter is incremented, its probability of being spam drops from 50% to 33%.

Although the whitelist entries in the embodiment shown are identified by email addresses, other identifiers may also be used when appropriate. In some embodiments, the recipient information extracted from the message data is the domain name. Once a domain is considered allowable and is added to the whitelist, future messages sent by all the users from the same domain all become allowable. Using the domain name to identify whitelist entries provides a “looser” whitelist implementation and increases the system's efficiency. In some embodiments, the Internet protocol (IP) address of the recipient's domain is looked up via Domain Name System (DNS). Both the IP address and the email address are used to identify a whitelist entry, thus providing a more “strict” whitelist implementation and reducing the chances of spam messages with a spoofed email addresses (i.e. allowable email address but sent from the spammer's mail server) getting through.

FIG. 5 is a flowchart illustrating the automatic updating of hierarchical whitelists according to an embodiment. A trusted user sends a message (500). The user's whitelist is updated to include recipient information (502). Then, a whitelist of the group that includes the trusted user is also updated (504). A corporate whitelist is then updated (506), as is the global whitelist (508). Although in the embodiment shown, after the trusted user's whitelist is updated, and all the other whitelists in the hierarchy are updated, they are not necessarily all updated in other embodiments. In some embodiments, only the group whitelist is updated and the corporate and the global whitelists are unaffected.

FIG. 6 is a flowchart illustrating a message classification process using hierarchical whitelists and blacklists according to one embodiment. The whitelists and blacklists are used to help classify messages. Once a message is received (600), the sender's information is first looked up in the corporate whitelist and blacklist (602). If the sender is found to be on the blacklist, the message is classified as spam and rejected (614). If the message is found to be on the corporate whitelist, it is classified as non-spam and delivered to the intended recipient on the network (612). If, however, the sender is found on neither the blacklist nor the whitelist, and a classification cannot be made on the message, the system proceeds to check the sender information on the group or division's whitelist and blacklist (604). If it is found in the blacklist, the message is rejected (614). If it is found in the whitelist, the message is delivered (612).

If a decision cannot be made because the sender information is not found in either the blacklist or the whitelist of the group, the system proceeds to check the individual blacklist and whitelist (606). If the sender information is found in the blacklist, then the message is again rejected. If the sender information is found in the whitelist, then the message is delivered. If a decision cannot be made, the system proceeds to check the global blacklist and whitelist (608). The global blacklist and whitelist is a list obtained from a larger community of users that is made available to the company. A whitelisted or blacklisted sender causes the message to be delivered or rejected accordingly, and an indecision causes the system to make a probabilistic decision (610). The message is either rejected or delivered based on the probabilistic decision. In some embodiments, additional testing is performed to help classify the message.

The hierarchical classification scheme enables policy to be implemented at various corporate levels. In addition, individual preferences are taken into account. Finally, a message that is unclassifiable by the corporation, corporate group or the individual is tested versus whatever database can be obtained from a larger trusted or mostly trusted community. In the embodiment described, the corporate policy and then the group policy supersede the individual. In other embodiments, the hierarchy may change. For example, in one embodiment, the individual lists are checked after corporate policy is enforced and the group is only used if a decision cannot be made from the individual lists.

An improved technique for maintaining a whitelist has been disclosed. The technique obtains message data based on an email message: sent by a user, and extracts recipient information from the message data. The whitelist is then updated based on the recipient information. The technique allows the whitelist to be automatically updated using message data obtained from a variety of sources, thereby making the maintenance of whitelists less cumbersome for the users, and improve the quality and effectiveness of the whitelists.

Although the foregoing invention has been described in some detail for purposes of clarity of understanding, it will be apparent that certain changes and modifications may be practiced within the scope of the appended claims. It should be noted that there are many alternative ways of implementing both the process and apparatus of the present invention. Accordingly, the present embodiments are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims.

For example, some embodiments may include a computer program product for maintaining a whitelist. The computer program product may be embodied in a computer readable medium. The computer program may include computer instructions for maintaining a whitelist. 

1. A method for maintaining a whitelist, the method comprising: sending a message over a communication network to an addressee designated by a sender; executing instructions stored in memory, wherein execution of the instructions by a processor: identifies addressee information from message data; determines that the sender is a member of at least one group, and updates a whitelist associated with the at least one group using the addressee information; and rejecting or delivering a subsequently received incoming message from the addressee in accordance with the whitelist, wherein a recipient of the subsequently received incoming message belongs to the at least one group.
 2. The method of claim 1, wherein members of the group are divided into a plurality of hierarchies.
 3. The method of claim 2, wherein an update from a group member from a higher hierarchy overrides an update from another group member from a lower hierarchy.
 4. The method of claim 2, wherein an update from a group member from a higher hierarchy is given more weight than an update from another group member from a lower hierarchy.
 5. The method of claim 1, wherein the group is part of a global organization having a plurality of groups and wherein a global update is applied to the whitelist associated with the group.
 6. The method of claim 5, wherein rejecting or delivering the subsequently received message is further based on a global whitelist associated with the global organization.
 7. The method of claim 1, wherein rejecting or delivering the subsequently received message is further based on an individual whitelist associated with the recipient of the subsequently received message.
 8. The method of claim 1, wherein an update to a blacklist associated with the at least one group results in an adjustment to the whitelist.
 9. An apparatus for maintaining a whitelist, the apparatus comprising: a memory for storing one or more whitelists associated with one or more groups; a network interface for sending a message over a communication network to an addressee designated by a sender; and a processor for executing instructions stored in memory, wherein execution of the instructions by the processor: identifies addressee information from message data; determines that the sender is a member of at least one group, and updates a whitelist associated with the at least one group using the addressee information, wherein a subsequently received incoming message from the addressee in accordance with the whitelist, wherein a recipient of the subsequently received incoming message belongs to the at least one group.
 10. The apparatus of claim 9, wherein members of the group are divided into a plurality of hierarchies.
 11. The apparatus of claim 10, wherein an update from a group member from a higher hierarchy overrides an update from another group member from a lower hierarchy.
 12. The apparatus of claim 10, wherein an update from a group member from a higher hierarchy is given more weight than an update from another group member from a lower hierarchy.
 13. The apparatus of claim 9, wherein the group is part of a global organization having a plurality of groups and wherein a global update is applied to the whitelist associated with the group.
 14. The apparatus of claim 13, wherein rejecting or delivering the subsequently received message is further based on a global whitelist associated with the global organization.
 15. The apparatus of claim 9, wherein rejecting or delivering the subsequently received message is further based on an individual whitelist associated with the recipient of the subsequently received message.
 16. The apparatus of claim 9, wherein an update to a blacklist associated with the at least one group results in an adjustment to the whitelist.
 17. A non-transitory computer-readable storage medium, having embodied thereon a program executable by a processor to perform a method for maintaining a whitelist, the method comprising: sending a message to an addressee designated by a sender; identifying addressee information from message data; determining that the sender is a member of at least one group; updating a whitelist associated with the at least one group using the addressee information; and rejecting or delivering a subsequently received incoming message from the addressee in accordance with the whitelist, wherein a recipient of the subsequently received incoming message belongs to the at least one group. 